<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">买家信息</div>
                <div class="panel-body">
                    <div class="form-horizontal">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">头像:</label>
                            <div class="col-xs-12 col-sm-8">
                                <img src="{$row.user.avatar ?? ''}" width="150px" class="form-control-static" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">昵称:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.user.nickname ?? ''}</p>
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">姓名:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.user.username ?? ''}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">手机号:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.user.mobile ?? ''}</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">课程信息</div>
                <div class="panel-body">
                    <div class="form-horizontal">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">课程缩略图:</label>
                            <div class="col-xs-12 col-sm-8">
                                <img src="{$row.course_image ?? ''}" width="150px" class="form-control-static" />
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">课程标题:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.course_name}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">课程老师:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.course_teacher_name}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">单价:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.course_salesprice}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">数量:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">x 1</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">开课时间:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.course_start_time_text} 至 {$row.course_end_time_text}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">开课地址:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.course_address}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">咨询电话:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.course_mobile}</p>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">报名信息</div>
                <div class="panel-body">
                    <div class="form-horizontal">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">报名用户:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.username}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">预约手机号:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.mobile}</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">订单信息</div>
                <div class="panel-body">
                    <div class="form-horizontal">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">订单号:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.order_no}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">支付金额:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.pay_price}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">支付状态:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.pay_status_text}</p>
                            </div>
                        </div>
                        {if $row.pay_status=='2'}
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">支付时间:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{:datetime($row.createtime)}</p>
                            </div>
                        </div>
                        {/if}
                    </div>
                </div>
            </div>
        </div>
    </div>

    {if $row.pay_status == 0}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="payStatusList" item="vo"}
                <label for="row[pay_status]-{$key}"><input id="row[pay_status]-{$key}" name="row[pay_status]" type="radio" value="{$key}" {in name="key" value="$row.pay_status"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    {/if}

    {if $row.pay_status == 1 && $row.refund_status == 0}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Refund_status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="refundStatusList" item="vo"}
                <label for="row[refund_status]-{$key}"><input id="row[refund_status]-{$key}" name="row[refund_status]" type="radio" value="{$key}" {in name="key" value="$row.refund_status"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    {/if}
    {if $row.pay_status == 0 || $row.refund_status == 0}
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
    {/if}

</form>
